<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>xfw</title>
</head>
<body>
    <div id="p1"  xfw="小废物">这是一个块</div>
</body>
<script src="../js/jquery.js"></script>
<script>
    console.log($("div").attr("xfw"));
    console.log($("div").prop("xfw"));
    $("div").attr("xfw","这不是大废物")
    $("div").prop("xfw","这不是小废物")

    console.log($("div").prop("id"));
    $("div").prop("id","prop1")

</script>
</html>